package com.qdu.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qdu.entity.Assess;
import com.qdu.mapper.AssessMapper;
import com.qdu.service.AssessService;

@Service
public class AssessServiceImpl implements AssessService{

	@Autowired
	AssessMapper assessMapper;
	
	@Override
	public Assess getOneAssessByTeacherId(String tid) {
		return assessMapper.getOneAssessByTeacherId(tid);
	}

	@Override
	public List<Assess> getAllAssess() {
		return assessMapper.getAllAssess();
	}



	@Override
	public boolean deleteAssessById(String assessId) {
		return assessMapper.deleteAssessById(assessId);
	}

	@Override
	public Assess getOneAssessById(String assessId) {
		return assessMapper.getOneAssessById(assessId);
	}

	@Override
	public boolean addAssess(String tid, String cid, int termId, int assessResult, String srollno) {
		return assessMapper.addAssess(tid, cid, termId, assessResult, srollno);
	}

	@Override
	public boolean modifyAssess(Assess assess, String tid, String cid, int termId, String srollno) {
		return assessMapper.modifyAssess(assess, tid, cid, termId, srollno);
	}

	@Override
	public Assess getOneAssessByThreeId(String tid, String cid, int termId) {
		return assessMapper.getOneAssessByThreeId(tid, cid, termId);
	}

	@Override
	public String getAssessBySrollnoAndTermId(String srollno, int termId) {
		return assessMapper.getAssessBySrollnoAndTermId(srollno,termId);
	}

	@Override
	public Assess getOneAssessByTidAndTermId(String tid, int termId) {
		return assessMapper.getOneAssessByTidAndTermId(tid, termId);
	}


	

	
}
